package kt.base

fun main() {

    val array: Array<String> = Array(5) { (it * it).toString() }

    for (index in array.indices) {
        println("$index->${array[index]}")
    }
    println("=====================");

    for (item in array) {
        println(item)
    }
    println("=====================");

    array.forEach { println(it) }
    println("=====================");

    array.forEachIndexed { index, item -> println("$index->$item") }

}


